/**
 * @author scylla
 * @version V1.0
 * @Project echo-java-base
 * @Title ADamon
 * @Description *
 * @Package concurrent.mthread.daemon.factory
 * @Since 2021/7/28 4:17 下午
 */
package concurrent.mthread.daemon;

import java.util.concurrent.TimeUnit;

public class ADaemon implements Runnable {

    @Override
    public void run() {
        try {
            System.out.println("Starting ADaemon!");
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            System.err.println("exiting via InterrupedException");
        } finally {
            System.out.println("This should always run?");
        }

    }
}
